package com.xnyzc.lhy.mis.entity.worksheet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
*
* 工单呼叫记录
*
* @author cuixiaojian
* @since 2019-11-04
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysWorksheetCall对象", description="工单呼叫记录")
public class OaSysWorksheetCall implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value="call_id", type = IdType.INPUT)
    private Long callId;

    @ApiModelProperty(value = "关联工单表")
    private Long worksheetId;

    @ApiModelProperty(value = "呼叫电话号码")
    private String phone;

    @ApiModelProperty(value = "滴滴绑定id")
    private String bindId;

    @ApiModelProperty(value = "客服id")
    private String userId;

    @ApiModelProperty(value = "呼叫类型（0=外呼 1=接听）")
    private String callType;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String CALL_ID = "call_id";

    public static final String WORKSHEET_ID = "worksheet_id";

    public static final String PHONE = "phone";

    public static final String BIND_ID = "bind_id";

    public static final String USER_ID = "user_id";

    public static final String CALL_TYPE = "call_type";

    public static final String START_TIME = "start_time";

    public static final String END_TIME = "end_time";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
